﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MShop.Core.Domain
{

    [MetadataType(typeof(Distribution_Validation))]
    public partial class Distribution
    {
    }

    internal partial class Distribution_Validation
    {

        [DisplayName("名称")]
        [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "名称不能为空")]
        public string Name { get; set; }
        [DisplayName("价格")]
        [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "价格不能为空")]
        [System.ComponentModel.DataAnnotations.Range(0.01,10000,ErrorMessage = "价格只能为数字")]
        public decimal Price { get; set; }
        [DisplayName("备注")]
        [DataType(DataType.MultilineText)]      
        public string Desc { get; set; }

        [UIHint("Img")]
        [DisplayName("公司Logo")]
        [DataType(DataType.Text)]
        public string logo { get; set; }

        [DisplayName("货到付款")]      
        public bool Cod { get; set; }
    }
}